package cn.edu.scau.cmi.chenjia.composite.safe;

import java.util.Set;

public class SafePerson extends SafeOrganization{
	private String name;
	private String department;

	@Override
	public String doSomething() {
		return "我是安全性组合模式中的个人组件";
	}

	@Override
	public SafeOrganization getParent() {
		return this.getParent();
	}

	public SafePerson() {};
	
	public SafePerson(String name) {
		this.name=name;
		this.department="SafePerson";
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDepartment() {
		return department;
	}
}
